<template>
    <div class="list">
     <pannle title="商品添加">
        <el-form ref="form" :model="fromData" label-width="80px">
  <el-form-item label="活动名称">
    <el-input v-model="fromData.name"></el-input>
  </el-form-item>
  <el-form-item label="活动区域">
    <el-select v-model="fromData.region" placeholder="请选择活动区域">
      <el-option label="区域一" value="shanghai"></el-option>
    </el-select>
  </el-form-item>
    <el-form-item label="商品价格">
    <el-input-number v-model="num" @change="handleChange" :min="1" :max="10" label="商品价格"></el-input-number>
  </el-form-item>
</el-form>

     </pannle>
    </div>
</template>

<script>
import Pannle from '@/components/Pannle.vue'
import {addData} from '../../api/goods'
    export default {
        data(){
            return{
                num:1,
                fromData:{

                }
            };
        },
        components:{
            Pannle
        }
    }
</script>

<style lang="less" scoped>
.list{
    width: 100%;
    height: 100%;
}
</style>